package com.woniuxy.rabbit.kill.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * description: WebsocketConfiguration <br>
 * date: 2022/1/15 7:12 下午 <br>
 * author: shesaifei <br>
 * version: 1.0 <br>
 */
@Configuration
public class WebsocketConfiguration {
    //在容器中创建bean对象，在WebSocketUtil中需要用到的RemoteEndpoint对象
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
